package com.library.lms.service;

import com.github.pagehelper.PageInfo;
import com.library.lms.entity.Books;

import java.util.List;

public interface BooksService {

    int addBooks(Books books);

    List<Books> queryBooks();

    List<Books> queryBooksByName(String name, String author);

    /**
     * 分页实现
     */
    PageInfo<Books> findByPageService(int pageCode, int pageSize);

    int deleteBook(int id);

    int editBook(Books books);
}
